package com.juyu.miliao.common.constant;

import java.time.LocalDate;

/**
 * @author xuanqicheng
 */
public class IntegralReportedConstant {
    public static final long MAX_NUM = 3;
    private static final String INTEGRAL_REPORTED_EXIST_USER_REDIS_KEY = "INTEGRAL_REPORTED_EXIST_USER:";
    private static final String INTEGRAL_REPORTED_USER_REDIS_KEY = "INTEGRAL_REPORTED_USER:";

    public static String getIntegralReportedExistUserRedisKey(){
        return INTEGRAL_REPORTED_EXIST_USER_REDIS_KEY+ LocalDate.now().toString();
    }

    public static String getIntegralReportedUserRedisKey(long userId){
        return INTEGRAL_REPORTED_USER_REDIS_KEY+LocalDate.now().toString()+":"+userId;
    }

}
